snippet cfgopenocd
  #adapter driver jlink
  #adapter driver st-link
  #adapter driver cmsis-dap

  #transport select sw
  #transport select jtag

  adapter speed 1000

  #source [find interface/stlink.cfg]
  source [find interface/jlink.cfg]

  # source [find target/stm32f1x.cfg]
  source [find target/stm32h7x.cfg]

snippet cfgdaplink
  # SPDX-License-Identifier: GPL-2.0-or-later

  #
  # ARM CMSIS-DAP compliant adapter
  #
  # http://www.keil.com/support/man/docs/dapdebug/
  #
  adapter driver cmsis-dap
  transport select swd

  # Optionally specify the serial number of CMSIS-DAP usb device.
  # adapter serial 02200201E6661E601B98E3B9

snippet cfgstlink
  # SPDX-License-Identifier: GPL-2.0-or-later
 
  #
  # STMicroelectronics ST-LINK/V1, ST-LINK/V2, ST-LINK/V2-1, STLINK-V3 in-circuit
  # debugger/programmer
  #

  adapter driver hla
  hla_layout stlink
  hla_device_desc "ST-LINK"
  hla_vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b 0x0483 0x374d 0x0483 0x374e 0x0483 0x374f 0x0483 0x3752 0x0483 0x3753 0x0483 0x3754 0x0483 0x3755 0x0483 0x3757

  # Optionally specify the serial number of ST-LINK/V2 usb device.  ST-LINK/V2
  # devices seem to have serial numbers with unreadable characters.  ST-LINK/V2
  # firmware version >= V2.J21.S4 recommended to avoid issues with adapter serial
  # number reset issues.
  # eg.
  # adapter serial "\xaa\xbc\x6e\x06\x50\x75\xff\x55\x17\x42\x19\x3f"

snippet cfgjlink
  # SPDX-License-Identifier: GPL-2.0-or-later

  #
  # SEGGER J-Link
  #
  # http://www.segger.com/jlink.html
  #
 
  adapter speed 5000
  adapter driver jlink
  transport select swd
 
  # The serial number can be used to select a specific device in case more than
  # one is connected to the host.
  #
  # Example: Select J-Link with serial number 123456789
  #
  # adapter serial 123456789
